home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / scrollbar.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  121 lines

  1. /* $XConsortium: Scrollbar.h,v 1.7 91/07/26 21:59:31 converse Exp $ */
  2.  
  3.  
  4. /***********************************************************
  5. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  6. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  7.  
  8.                         All Rights Reserved
  9.  
  10. Permission to use, copy, modify, and distribute this software and its 
  11. documentation for any purpose and without fee is hereby granted, 
  12. provided that the above copyright notice appear in all copies and that
  13. both that copyright notice and this permission notice appear in 
  14. supporting documentation, and that the names of Digital or MIT not be
  15. used in advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.  
  17.  
  18. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  20. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  21. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  24. SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28. #ifndef _Scrollbar_h
  29. #define _Scrollbar_h
  30.  
  31. /****************************************************************
  32.  *
  33.  * Scrollbar Widget
  34.  *
  35.  ****************************************************************/
  36.  
  37. #include <X11/Xmu/Converters.h>
  38. #include <X11/Xfuncproto.h>
  39.  
  40. /* Scrollbar resources:
  41.  
  42.  Name             Class        RepType        Default Value
  43.  ----             -----        -------        -------------
  44.  accelerators         Accelerators    AcceleratorTable NULL
  45.  ancestorSensitive   AncestorSensitive    Boolean        True
  46.  background         Background        Pixel        XtDefaultBackground
  47.  backgroundPixmap    Pixmap        Pixmap        XtUnspecifiedPixmap
  48.  borderColor         BorderColor    Pixel        XtDefaultForeground
  49.  borderPixmap         Pixmap        Pixmap        XtUnspecifiedPixmap
  50.  borderWidth         BorderWidth    Dimension    1
  51.  colormap         Colormap        Colormap    parent's colormap
  52.  cursor             Cursor        Cursor        None
  53.  cursorName         Cursor        String        NULL
  54.  depth             Depth        int        parent's depth
  55.  destroyCallback     Callback        XtCallbackList    NULL
  56.  foreground         Foreground        Pixel        XtDefaultForeground
  57.  height             Height        Dimension    length or thickness
  58.  insensitiveBorder   Insensitive    Pixmap        GreyPixmap
  59.  jumpProc         Callback        XtCallbackList    NULL
  60.  length             Length        Dimension    1
  61.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  62.  minimumThumb         MinimumThumb    Dimension    7
  63.  orientation         Orientation    XtOrientation    XtorientVertical
  64.  pointerColor         Foreground        Pixel        XtDefaultForeground
  65.  pointerColorBackground Background    Pixel        XtDefaultBackground
  66.  screen             Screen        Screen        parent's screen
  67.  scrollDCursor         Cursor        Cursor        XC_sb_down_arrow
  68.  scrollHCursor         Cursor        Cursor        XC_sb_h_double_arrow
  69.  scrollLCursor         Cursor        Cursor        XC_sb_left_arrow
  70.  scrollProc         Callback        XtCallbackList    NULL
  71.  scrollRCursor         Cursor        Cursor        XC_sb_right_arrow
  72.  scrollUCursor         Cursor        Cursor        XC_sb_up_arrow
  73.  scrollVCursor         Cursor        Cursor        XC_sb_v_double_arrow
  74.  sensitive         Sensitive        Boolean        True
  75.  shown             Shown        Float        0.0
  76.  thickness         Thickness        Dimension    14
  77.  thumb             Thumb        Bitmap        GreyPixmap
  78.  thumbProc         Callback        XtCallbackList    NULL
  79.  topOfThumb         TopOfThumb        Float        0.0
  80.  translations         Translations    TranslationTable see source or doc
  81.  width             Width        Dimension    thickness or length
  82.  x             Position        Position    0
  83.  y             Position        Position    0
  84.  
  85. */
  86.  
  87. /* 
  88.  * Most things we need are in StringDefs.h 
  89.  */
  90.  
  91. #define XtCMinimumThumb "MinimumThumb"
  92. #define XtCShown "Shown"
  93. #define XtCTopOfThumb "TopOfThumb"
  94.  
  95. #define XtNminimumThumb "minimumThumb"
  96. #define XtNtopOfThumb "topOfThumb"
  97.  
  98. typedef struct _ScrollbarRec      *ScrollbarWidget;
  99. typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
  100.  
  101. extern WidgetClass scrollbarWidgetClass;
  102.  
  103. _XFUNCPROTOBEGIN
  104.  
  105. extern void XawScrollbarSetThumb(
  106. #if NeedFunctionPrototypes
  107.     Widget        /* scrollbar */,
  108. #if NeedWidePrototypes
  109.     /* float */ double    /* top */,
  110.     /* float */    double    /* shown */
  111. #else
  112.     float        /* top */,
  113.     float        /* shown */
  114. #endif
  115. #endif         
  116. );
  117.  
  118. _XFUNCPROTOEND
  119.  
  120. #endif /* _Scrollbar_h */
  121.